import express from 'express'
const router = express.Router()
import authenticateJWT from "../utils/authenticateJWT.js";

// middleware that is specific to this router
const timeLog = (req, res, next) => {
  console.log('Time: ', Date.now())
  next()
}
router.use(timeLog)

// define the home page route
router.get('/', (req, res) => {
  res.send('Birds home page')
})
// define the about route
router.get('/about', authenticateJWT,(req, res) => {
  res.send('About birds')
})
export default router